package HomeWork.Extends_04;

public class Test {
    public static void main(String[] args) {
        Person p1 = new Person("老王", 30);
        Person p2 = new Person("老王", 30);
        p1.keepPet(new Dog("黑", 2), "骨头");
        p2.keepPet(new Cat("灰",3), "鱼");
    }
}
